# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=cflow
pkgver=1.7
pkgrel=1
pkgdesc='A C program flow analyzer.'
url='http://www.gnu.org/software/cflow/'
groups=('blackarch' 'blackarch-code-audit')
license=('GPL')
arch=('x86_64' 'aarch64')
source=("http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.bz2")
sha512sums=('ec7361b12099e8024f8420469eeddfa068014e8c7bc892ff5780396ce0baa1f915cc57d304f7e228f010379e08b9bd1ce31c9b50b619bb469081a5ea3d2bd9f4')

build() {
  cd "$pkgname-$pkgver"

  ./configure --prefix=/usr

  make
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

